const express = require("express");

// 使用express路由
const operationLogRouter = express.Router();
// 导入路由处理模块
const operationLogController = require("../Controller/operationLog");
// 操作记录
operationLogRouter.post("/operationLog", operationLogController.operationLog);
// 获取操作日志列表
operationLogRouter.get(
  "/operationLogList",
  operationLogController.operationLogList
);
// 获取最近十条日志列表
operationLogRouter.get(
  "/searchoperationLogList",
  operationLogController.searchoperationLogList
);
// 清空操作日志
operationLogRouter.post(
  "/clearoperationLog",
  operationLogController.clearoperationLog
);

// 对外暴露路由
module.exports = operationLogRouter;
